/* fancyAvatar.css */

/* 卡片美化 */
.page-container {
  border-radius: 12px;
  background: linear-gradient(to bottom right, #f3f7fd, #fce4ec);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  animation: fadeIn 0.4s ease;
}

/* 卡片标题 */
.page-container .header span {
  font-size: 18px;
  font-weight: 600;
  color: #5e35b1;
}

/* 上传区域样式 */
.avatar-uploader {
  display: inline-block;
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 12px;
  overflow: hidden;
  width: 280px;
  height: 280px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.avatar-uploader:hover {
  border-color: #42a5f5;
  box-shadow: 0 0 10px rgba(66, 165, 245, 0.3);
}

/* 图片样式 */
.avatar-uploader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* 按钮统一风格 */
.el-button {
  border-radius: 8px;
  font-weight: 500;
  /* padding: 8px 24px; */
  margin-top: 16px;
  /* margin-right: 12px; */
  transition: all 0.3s ease;
}

.el-button--primary {
  background: linear-gradient(to right, #42a5f5, #7e57c2);
  border: none;
  color: #fff;
}

.el-button--success {
  background: linear-gradient(to right, #66bb6a, #43a047);
  border: none;
  color: #fff;
}

.el-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 进入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
